package com.dcoinpay.sys.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.dcoinpay.sys.mapper.CoinMapper;
import com.dcoinpay.sys.entity.Coin;
import com.dcoinpay.sys.service.CoinService;


@Service("coinService")
public class CoinServiceImpl extends ServiceImpl<CoinMapper, Coin> implements CoinService {
	
	@Autowired
	private CoinMapper coinMapper;
	
	@Override
	public IPage<Coin> pageInfo(Coin vo) {
		List<Coin> coins = coinMapper.pageInfo(vo);
		Page<Coin> page = new Page<Coin>(1,10);
		return page.setRecords(coins);
	}


}